package  
{
	import flash.display.*;
	import flash.events.*;
	import flash.geom.*;
	
	public final class VerletPointTest extends Sprite
	{
		
		public function VerletPointTest() 
		{
			m_stageRect = new Rectangle(0, 0, this.stage.stageWidth, this.stage.stageHeight);
			
			m_point = new VerletPoint(100, 100);
			m_point.x += 5;
			this.addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
		}
		
		private function onEnterFrameHandler(evt : Event) : void
		{
			m_point.y += 0.5;
			m_point.update();
			m_point.constrain(m_stageRect);
			
			this.graphics.clear();
			m_point.render(this.graphics);
		}
		
		private var m_point : VerletPoint = null;
		private var m_stageRect : Rectangle = null;
		
	}

}